

<!-- 模态框（Modal） -->
<div class="modal fade" id="dialogstrategyconfig" tabindex="-1" role="dialog" aria-labelledby="strategyconfig" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
                    &times;
                </button>
                <h4 class="modal-title" id="strategyconfig">
                    策略配置
                </h4>
            </div>
            <div class="modal-body">
                <h3>参数配置</h3>
                <textarea class="form-control" rows="3" name=textarea ng-model="dialog_strategies_params_text"></textarea>
                <button type="button" id="saveParamsbuttonid" class="btn btn-primary " ng-click="saveParams()">保存参数</button>

                      <div ng-controller="strategTableCtrl as demo">

                          <div class="brn-group pull-right">
                                <button class="btn btn-default" ng-if="demo.isEditing" ng-click="demo.cancelChanges()">
                                  <span class="glyphicon glyphicon-remove"></span>
                                </button>
                                <button class="btn btn-primary" ng-if="!demo.isEditing" ng-click="demo.isEditing = true">
                                  <span class="glyphicon glyphicon-pencil"></span>
                                </button>
                                <button class="btn btn-primary" ng-if="demo.isEditing" ng-disabled="!demo.hasChanges() || demo.tableTracker.$invalid" ng-click="demo.saveChanges()">
                                  <span class="glyphicon glyphicon-ok"></span>
                                </button>

                          </div>

                          <table ng-table="demo.DialogtableParams" class="table table-bordered table-hover table-condensed editable-table" ng-form="demo.tableForm"  demo-tracked-table="demo.tableTracker">
                                <colgroup>
                                      <col width="70%" />
                                      <col width="12%" />
                                      <col width="13%" />
                                      <col width="5%" />
                                </colgroup>
                                <tr ng-repeat="row in $data" ng-form="rowForm" demo-tracked-table-row="row">
                                      <td title="'username'" filter="{username: 'text'}" sortable="'username'" ng-switch="demo.isEditing" ng-class="username.$dirty ? 'bg-warning' : ''" >
                                            <span >{{row.username}}</span>
                                      </td>
                                      <td title="'exchange'" filter="{exchange: 'text'}" sortable="'exchange'" ng-switch="demo.isEditing" ng-class="exchange.$dirty ? 'bg-warning' : ''" >
                                            <span >{{row.exchange}}</span>
                                      </td>
                                      <td title="'shoushu'" filter="{shoushu: 'number'}" sortable="'shoushu'" ng-switch="demo.isEditing" ng-class="shoushu.$dirty ? 'bg-warning' : ''" ng-form="shoushu" demo-tracked-table-cell>
                                          <span ng-switch-default class="editable-text">{{row.shoushu}}</span>
                                          <div class="controls" ng-class="shoushu.$invalid && shoushu.$dirty ? 'has-error' : ''" ng-switch-when="true">
                                                <input type="text" name="shoushu" ng-model="row.shoushu" class="editable-input form-control input-sm" required/>
                                          </div>
                                      </td>
                                      <!--<td>-->
                                        <!--<button class="btn btn-danger btn-sm" ng-click="demo.del(row)" ng-disabled="!demo.isEditing"><span class="glyphicon glyphicon-trash"></span></button>-->
                                      <!--</td>-->
                                </tr>
                          </table>
                    </div>


            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭
                </button>


            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>

